package com.anyou.mall.dri.service;


import com.anyou.mall.dri.domain.Notice;
import com.anyou.mall.order.domain.OrdOrder;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * @author liqipeng
 * @description 司机通知-业务接口类
 * @date 2022-04-02
 */
public interface INoticeService extends IService<Notice> {
    /**
     * 通过平台消息id给每个司机插入一条消息
     * @param platformNoticeId
     * @return
     */
    boolean insertDataByPlatformNotice(Long platformNoticeId, List<Long> userIds);

    /**
     * 为司机添加消息
     * @param ordOrder
     * @param type 类型：1-揽件员，2-配送员
     */
    void insertNotice(OrdOrder ordOrder, int type);

    /**
     * 删除司机表中的消息
     * @param platformNoticeId
     * @return
     */
    boolean deleteDataByPlatformNotice(Long platformNoticeId);
}
